<?PHP
  class Icons{
  
  public function getIcon($name){
    if(file_exists("../system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png")){
	  $res = "/system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png";
	}
	else{
	  $res = "/system/images/icons/".getSetting("global","global","iconset")."/".strtolower($name).".png";
	}
	return $res;
  }

}
?>